import axios from '@/libs/api.request'
import { getToken } from '@/libs/util'

class DevicePosition {
  constructor() {
    this.$axios = axios;
  }

  /**
   * 轨迹回放查询
   * @param param
   * @returns {*}
   */
  queryForTrackPlay = (param) => {
    return axios.request({
      url: '/admin/device/pos/query/page/by/track',
      method: 'post',
      dataType: 'json',
      headers: {
        'Content-Type': 'application/json; charset=UTF-8',
        'token': getToken()
      },
      data: param
    })
  }

  QueryByPage=(param)=>{
    return axios.request({
      url: '/admin/device/pos/query/page/for/detail',
      method: 'post',
      dataType: 'json',
      headers: {
        'Content-Type': 'application/json; charset=UTF-8',
        'token': getToken()
      },
      data: param
    })

  }
}
export default DevicePosition;
